<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="common/head.jsp"%>
<%@ include file="common/jstl.jsp"%>
<html>
<head>
    <title>商品列表</title>
</head>

<body>

    <div class="container">
        <div class="panel panel-default">
           <div class="panel-heading text-center">
                <h2>秒杀列表</h2>
           </div>

            <div class="panel-body">

                <table class="table table-cell">
                    <thead>
                        <th>商品名称</th>
                        <th>库存数量</th>
                        <th>开始时间</th>
                        <th>结束时间</th>
                        <th>详情页</th>
                    </thead>

                    <tbody>
                        <%--<c:forEach var="list" items="${seckillList}">--%>
                            <tr id="product">
                                <%--<td>${list.name}</td>--%>
                                <%--<td>${list.number}</td>--%>
                                <%--<td>--%>
                                    <%--<fmt:formatDate value="${list.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>--%>
                                <%--</td>--%>
                                <%--<td>--%>
                                    <%--<fmt:formatDate value="${list.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>--%>
                                <%--</td>--%>
                                <%--<td>--%>
                                    <%--<a class="btn btn-info" href="/seckill/${list.seckillId}/detail" target="_blank">Link</a>--%>
                                <%--</td>--%>
                            </tr>
                        <%--</c:forEach>--%>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

</body>
<!-- jQuery 2.2.3 -->
<script src="/static/plugins/jQuery/jquery-2.2.3.min.js" type="text/javascript"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/static/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>

<script type="text/javascript">
    $(function () {

        var data = {
            "currentPage":"2",
            "pageSize":5
        };
        $.post("/listPage",data,function (result) {
            console.log(result);
        })
    })
</script>

</html>
